import { Button, notification } from 'antd';

const openNotification = (val) => {
  notification.open({
    message: '操作错误',
    description:
      val,
    onClick: () => {
      console.log('Notification Clicked!');
    },
    className: 'notiFication'
  });
};

const passCation = (data) => {
  notification.open({
    message: '操作成功!',
    description:
      data,
    onClick: () => {
      console.log('Notification Clicked!');
    },
    className: 'PassCation'
  });
};
export { 
  openNotification,
   passCation 
  };